Mobilebone.onpagefirstinto = function(pageinto) {
	console.log(pageinto.id);
	var myScroll = new iScroll(pageinto.id,{vScrollbar:false});
	document.addEventListener('touchmove', function (e) { e.preventDefault(); }, false);
	if(pageinto.id=="pageHome"){
		var elem = document.getElementById('mySwipe');
		window.mySwipe = Swipe(elem, {
			continuous: true,
			disableScroll:false,
			callback: function(pos) {
			
			}
		});
	}
};
Mobilebone.callback = function(pageinto, pageout) {
	var id=$(pageinto).attr("id");
	$(".mui-tab-item").each(function(){
		if($(this).attr("href")=="#"+id){
			if(!$(this).hasClass("mui-active")){
				$(this).addClass("mui-active");
			}
		}else{
			if($(this).hasClass("mui-active")){
				$(this).removeClass("mui-active");
			}
		}
	});
	
};